<template>
    <footer class="footer">
      <!-- 统计 -->
      <span class="todo-count">合 计:<strong> {{taskList.length}} </strong></span>
      <!-- 清空 -->
      <button class="clear-completed" @click="clear">
        清空任务
      </button>
    </footer>
</template>

<script>
export default {
    components: {

    },
    props:
   {
      taskList:{
        type:Array
      }
    },
    methods:{
      clear(){
        this.$emit('clear')
      }
    },
     
  data () {
    return {

    }
  }
}
</script>

<style></style>